import request from '@/utils/request'

// 查询连续探测方案列表
export function listScheme(query) {
  return request({
    url: '/business/continuousScheme/list',
    method: 'get',
    params: query
  })
}

// 查询连续探测方案详细
export function getScheme(detectionSchemeId) {
  return request({
    url: '/business/continuousScheme/' + detectionSchemeId,
    method: 'get'
  })
}

// 新增连续探测方案
export function addScheme(data) {
  return request({
    url: '/business/continuousScheme',
    method: 'post',
    data: data
  })
}

// 修改连续探测方案
export function updateScheme(data) {
  return request({
    url: '/business/continuousScheme',
    method: 'put',
    data: data
  })
}

// 删除连续探测方案
export function delScheme(detectionSchemeId) {
  return request({
    url: '/business/continuousScheme/' + detectionSchemeId,
    method: 'delete'
  })
}


// 发送探测
export function sendScheme(data) {
  return request({
    url: '/business/continuousScheme/send',
    method: 'post',
    data: data
  })
}
